package dojo.bowling;

public class LastFrame extends Frame {

	private int thirdThrow;

	public LastFrame(int firstThrow, int secondThrow, int thirdThrow) {
		super(firstThrow, secondThrow);
		this.thirdThrow = thirdThrow;
	}

	public int getThirdThrow() {
		return this.thirdThrow;
	}

	public void setThirdThrow(int thirdThrow) {
		this.thirdThrow = thirdThrow;
	}

	@Override
	public int getScore() {
		return this.thirdThrow + super.getScore();
	}

	@Override
	protected int strikeBonus() {
		return 0;
	}

	@Override
	protected int spareBonus() {
		return 0;
	}

	@Override
	protected int secondBall() {
		return getSecondThrow();
	}
}
